<!DOCTYPE html>
<html xmlns:th="http:www.thymeleaf.org"> <!--申明thymeleaf前缀-->
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    首页<br>
    姓名:<span th:text="${name}"></span>
    <img th:src="@{'/html/'+${imgPath}}" width="200" height="200"><br>
    <a th:href="@{/test/del(id=${userId})}">删除</a><br>

    成绩:<SPAN th:text="${grade}"></SPAN>
    评价:<span th:if="${grade >= 60}">合格</span>
        <SPAN th:if="${grade < 60}">不合格</SPAN>

    <table border="1" width="60%">
        <thead>
            <tr><th>编号</th><th>姓名</th><th>性别</th></tr>
        </thead>
        <TBODY>
            <tr th:each="user:${userList}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.name}"></td>
                <td th:text="${user.sex}"></td>
            </tr>
        </TBODY>
    </table>

    <a th:each="i:${#numbers.sequence(1,pages)}" th:text="${i}+'页'" th:href="@{/cutAll(pageNO=${i})}"
       style="margin-left: 5px"></a>
</body>
</html>